package com.ss.android.article.base.feature.b;

import com.ss.android.article.base.feature.app.e.TTAndroidObject;

import org.json.JSONObject;

public final class a {
    public long a;
    public long b;
    public long c;

    public a() {

    }

    public a(long arg4, long arg6) {

        this.a = arg4;
        this.c = 0;
        this.b = arg6;
    }

    public static a a(JSONObject arg4) {
        a v0 = null;
        if(arg4 != null) {
            a v1 = new a();
            try {
                v1.a = TTAndroidObject.optLong(arg4, "adId");
                v1.b = TTAndroidObject.optLong(arg4, "startTime");
                v1.c = TTAndroidObject.optLong(arg4, "spendTime");
                v0 = v1;
            }
            catch(Exception v1_1) {
                v1_1.printStackTrace();
            }
        }

        return v0;
    }

    public final JSONObject a() {
        JSONObject v1 = new JSONObject();
        try {
            v1.put("adId", this.a);
            v1.put("startTime", this.b);
            v1.put("spendTime", this.c);
        }
        catch(Exception v0) {
            v0.printStackTrace();
        }

        return v1;
    }
}

